var eamineeId;
$(document).ready(function(){
	eamineeId = window.sessionStorage.getItem("card");
	if(!eamineeId)
		window.location.href = "postalquery.html";
	
	$.ajax({
		type:'GET',
		cache:false,
		url:rootPath+"/getPostalByCardId",
		async:true,
		data:{
			cardId:eamineeId
		},
		success:function(result)
		{
			//var result=results.extend.Admissions;
			var cardId = result.extend.Postals.card;//考生信息
			var name = result.extend.Postals.name;
			var studentId = result.extend.Postals.examineeId;
			var mathe = result.extend.Postals.postalNum;
		/*	var chinese = result.extend.Postals.province;
			var english = result.extend.Postals.major;
			var comprehensive = result.extend.Postals.faculty;
			var total =result.extend.Admissions.examineeType*/
			document.getElementById("name").innerHTML = name;
			document.getElementById("cardId").innerHTML = cardId;
			document.getElementById("studentId").innerHTML = studentId;
			document.getElementById("mathe").innerHTML = mathe;
			/*document.getElementById("chinese").innerHTML = chinese;
			document.getElementById("english").innerHTML = english;
			document.getElementById("comprehensive").innerHTML = comprehensive;
			document.getElementById("total").innerHTML = total;*/
			
		
		}
	});
});


function logout()
{
	window.sessionStorage.clear();
	window.location.href = "postalquery.html";
}